package www.alterzhang.cn.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import www.alterzhang.cn.entity.User;
import www.alterzhang.cn.mapper.UserMapper;
import www.alterzhang.cn.service.UserService;

/**
 * Created by Administrator on 2018/4/15 0015.
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User findByName(String name) {
        return userMapper.findByName(name);
    }

    @Override
    public int insert(String name, Integer age) {
        return userMapper.insert(name,age);
    }
}
